<!doctype html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../assert_selection.js"></script>
<script>

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">|\u05DC\u05E4\u05E0\u05D9    after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">|\u05DC\u05E4\u05E0\u05D9    after encyclopedia</div>',
  '20-0 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC|\u05E4\u05E0\u05D9    after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">|\u05DC\u05E4\u05E0\u05D9    after encyclopedia</div>',
  '20-1 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4|\u05E0\u05D9    after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC|\u05E4\u05E0\u05D9    after encyclopedia</div>',
  '20-2 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0|\u05D9    after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4|\u05E0\u05D9    after encyclopedia</div>',
  '20-3 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9|    after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0|\u05D9    after encyclopedia</div>',
  '20-4 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9 |   after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9|    after encyclopedia</div>',
  '20-5 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9  |  after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9|    after encyclopedia</div>',
  '20-6 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9   | after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9|    after encyclopedia</div>',
  '20-7 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    |after encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9|    after encyclopedia</div>',
  '20-8 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    a|fter encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9 |   after encyclopedia</div>',
  '20-9 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    af|ter encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    a|fter encyclopedia</div>',
  '20-10 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    aft|er encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    af|ter encyclopedia</div>',
  '20-11 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    afte|r encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    aft|er encyclopedia</div>',
  '20-12 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after| encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    afte|r encyclopedia</div>',
  '20-13 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after |encyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after| encyclopedia</div>',
  '20-14 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after e|ncyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after |encyclopedia</div>',
  '20-15 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after en|cyclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after e|ncyclopedia</div>',
  '20-16 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after enc|yclopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after en|cyclopedia</div>',
  '20-17 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after ency|clopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after enc|yclopedia</div>',
  '20-18 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyc|lopedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after ency|clopedia</div>',
  '20-19 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encycl|opedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyc|lopedia</div>',
  '20-20 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclo|pedia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encycl|opedia</div>',
  '20-21 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclop|edia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclo|pedia</div>',
  '20-22 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclope|dia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclop|edia</div>',
  '20-23 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encycloped|ia</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclope|dia</div>',
  '20-24 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclopedi|a</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encycloped|ia</div>',
  '20-25 ltr left character');

selection_test(
  '<div contenteditable dir="ltr" contenteditable style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclopedia|</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr" style="width: 120px;">\u05DC\u05E4\u05E0\u05D9    after encyclopedi|a</div>',
  '20-26 ltr left character');
</script>
